//
//  Car.swift
//  test_swift
//
//  Created by fangyuan ding on 2021/6/1.
//

import Foundation
// main.swift
class Car {
    var price: Double
    var band: String
    
    init(price: Double, band: String) {
        self.price = price
        self.band = band
    }
    
    func run() {
        print("run", self.price, self.band)
    }
    
    static func run() {
        print("Car run")
    }
}

extension Car {
    func test() {
        print("test", self.price, self.band)
    }
}



